import L from 'leaflet'
import 'leaflet-distortableimage/dist/vendor'
import 'leaflet-distortableimage'
import 'leaflet/dist/leaflet.css'
import 'leaflet-toolbar/dist/leaflet.toolbar.css'
import 'leaflet-distortableimage/dist/leaflet.distortableimage.css'

// 重置marker icon路径
delete L.Icon.Default.prototype._getIconUrl
L.Icon.Default.mergeOptions({
  iconRetinaUrl: require('../../node_modules/leaflet/dist/images/marker-icon-2x.png'),
  iconUrl: require('../../node_modules/leaflet/dist/images/marker-icon.png'),
  shadowUrl: require('../../node_modules/leaflet/dist/images/marker-shadow.png')
})

export default L
